package com.woniuxy.hrp.service.Serviceimpl;

import com.woniuxy.hrp.entity.DoctorPatientMedicine;
import com.woniuxy.hrp.mapper.DoctorPatientMedicineMapper;
import com.woniuxy.hrp.service.DoctorPatientMedicineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: hrph
 * @ClassName DoctorPatientMedicineServiceImpl
 * @description:
 * @author: LRW
 * @create: 2022-09-08 15:24
 * @Version 1.0
 **/
@Service
public class DoctorPatientMedicineServiceImpl implements DoctorPatientMedicineService {

    @Autowired
    private DoctorPatientMedicineMapper doctorPatientMedicineMapper;

    /***
     * @description: 根据就诊记录id获取用药记录
     * @param: MrecordId
     * @return: java.util.List<com.woniuxy.hrp.entity.DoctorPatientMedicine>
     * @author Lrw
     * @date: 2022/9/8 15:34
     */
    @Override
    public List<DoctorPatientMedicine> selectByMrecordId(int MrecordId) {
        return doctorPatientMedicineMapper.selectByMrecordId(MrecordId);
    }
}
